package com.jubaopen.dao.ibatis;

import java.util.List;
import java.util.Map;
import com.jubaopen.bean.JoinApply;
import com.jubaopen.dao.JoinApplyDAO;

public class JoinApplyDAOImpl extends BaseIBatisDao implements JoinApplyDAO {

	@Override
	public JoinApply getById(int id) {
		return (JoinApply) this.getSqlMapClientTemplate().queryForObject(
				"JoinApplyMapper.getById", id);
	}

	@Override
	public int add(JoinApply entity) {
		return (Integer) this.getSqlMapClientTemplate().insert(
				"JoinApplyMapper.insert", entity);
	}

	@Override
	public int getCount(Map<String, Object> entity) {
		return (Integer) this.getSqlMapClientTemplate().queryForObject(
				"JoinApplyMapper.getCount", entity);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<JoinApply> getList(Map<String, Object> entity) {
		return this.getSqlMapClientTemplate().queryForList(
				"JoinApplyMapper.getPagedList", entity);
	}

}
